
package edu.spec.student.model.mental;

import edu.spec.basic.model.anno.Excel;

import javax.persistence.*;

/**
 * Created by MadFrog on 2017/6/19.
 * 心理测评题目
 */
@Entity
@Table(name = "t_rubric")
public class Rubric {

    private int id;
    private Mental mental;
    @Excel(columnName = "序号", exportWidth = 20, exportConvert = false, importConvert = false)
    private int num;
    @Excel(columnName = "题干", exportWidth = 20, exportConvert = false, importConvert = false)
    private String stem;
    @Excel(columnName = "选项1", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice1;
    @Excel(columnName = "选项2", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice2;
    @Excel(columnName = "选项3", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice3;
    @Excel(columnName = "选项4", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice4;
    @Excel(columnName = "选项5", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice5;

    private Integer choice1Score;
    private Integer choice2Score;
    private Integer choice3Score;
    private Integer choice4Score;
    private Integer choice5Score;

    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @ManyToOne
    @JoinColumn(name = "mental_id")
    public Mental getMental() {
        return mental;
    }

    public void setMental(Mental mental) {
        this.mental = mental;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getStem() {
        return stem;
    }

    public void setStem(String stem) {
        this.stem = stem;
    }

    public String getChoice1() {
        return choice1;
    }

    public void setChoice1(String choice1) {
        this.choice1 = choice1;
    }

    public String getChoice2() {
        return choice2;
    }

    public void setChoice2(String choice2) {
        this.choice2 = choice2;
    }

    public String getChoice3() {
        return choice3;
    }

    public void setChoice3(String choice3) {
        this.choice3 = choice3;
    }

    public String getChoice4() {
        return choice4;
    }

    public void setChoice4(String choice4) {
        this.choice4 = choice4;
    }

    public String getChoice5() {
        return choice5;
    }

    public void setChoice5(String choice5) {
        this.choice5 = choice5;
    }

    @Column(name = "choice1_score")
    public Integer getChoice1Score() {
        return choice1Score;
    }

    public void setChoice1Score(Integer choice1Score) {
        this.choice1Score = choice1Score;
    }

    @Column(name = "choice2_score")
    public Integer getChoice2Score() {
        return choice2Score;
    }

    public void setChoice2Score(Integer choice2Score) {
        this.choice2Score = choice2Score;
    }

    @Column(name = "choice3_score")
    public Integer getChoice3Score() {
        return choice3Score;
    }

    public void setChoice3Score(Integer choice3Score) {
        this.choice3Score = choice3Score;
    }

    @Column(name = "choice4_score")
    public Integer getChoice4Score() {
        return choice4Score;
    }

    public void setChoice4Score(Integer choice4Score) {
        this.choice4Score = choice4Score;
    }

    @Column(name = "choice5_score")
    public Integer getChoice5Score() {
        return choice5Score;
    }

    public void setChoice5Score(Integer choice5Score) {
        this.choice5Score = choice5Score;
    }
}
